package cn.amossun.starter.web.data.security.test.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.amossun.starter.web.data.security.test.mapper.UserAddressMapper;
import cn.amossun.starter.web.data.security.test.model.UserAddress;
import cn.amossun.starter.web.data.security.test.service.IUsersAddressService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;


@Slf4j
@Service("testUsersAddressService")
public class UsersAddressServiceImpl extends ServiceImpl<UserAddressMapper, UserAddress> implements IUsersAddressService {

    private final UserAddressMapper userAddressMapper;

    public UsersAddressServiceImpl(UserAddressMapper userAddressMapper){
        this.userAddressMapper = userAddressMapper;
    }

    @Override
    public List<UserAddress> listAddress(String nickname) {
        return userAddressMapper.list(nickname);
    }
}
